#ifndef _SERVER_LOG_H
#define _SERVER_LOG_H

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "vadefs.h"
#include "stdarg.h"
#include "time.h"

#define LOG_FILE_PATH "./server/log/server_log.log"

#define server_log(class, fmt, ...) \
    _server_log(class,"[%s] " fmt, __func__, ##__VA_ARGS__)

typedef enum _LogOutputType{
    LOG_OUTPUT_TYPE_CONSOLE,
    LOG_OUTPUT_TYPE_FILE,
}LogOutputType;

typedef enum _LogClass{
    LOG_SYSTEM = 0,
    LOG_INFO,
}LogClass;

void server_log_init(LogOutputType log_output_type);
void _server_log(LogClass log_class, const char *format, ...);

#endif
